package com.jerry.common.vo;

import java.io.Serializable;
import java.util.List;

/**
 * Filename:    com.jerry.common.vo.PageInfo
 * Description:
 * Copyright:   Copyright (c)2017
 * Company:     lngtop
 *
 * @author 谢余锋
 * @version 1.0
 *          Create at:   2017/3/16 上午11:09
 */
public class PageModel<T> implements Serializable {

    //总记录数
    private long total;
    //总页数
    private int pages;
    //结果集
    private List<T> data;

    public PageModel() {
    }

    public PageModel(long total, int pages, List<T> data) {
        this.total = total;
        this.pages = pages;
        this.data = data;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public int getPages() {
        return pages;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }
}
